package org.darkforest.dao.mapper;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.Area;

import java.util.List;

@DBMapper
public interface AreaMapper {
    int deleteByPrimaryKey(Integer areaId);

    int insert(Area record);

    int insertSelective(Area record);

    Area selectByPrimaryKey(Integer areaId);

    List<Area> getAreaListByParentId(Integer parentId);

    int updateByPrimaryKeySelective(Area record);

    int updateByPrimaryKey(Area record);
}